package com.rerun.entity;


import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.rerun.common.util.JsonDateFormat;
import com.rerun.entity.vo.JobDetailVo;

import java.io.Serializable;
import java.util.Date;

/**
 * The type Job feedback.
 * @author Administrator
 */
@TableName("job_feedback")
public class JobFeedback extends Model<JobFeedback> {

    private static final long serialVersionUID = -3000517512525003068L;
    @TableId(type = IdType.UUID)
    private String id;
    private String memberId;
    private String jobId;
    private long status;
    @JsonSerialize(using = JsonDateFormat.class)
    private Date completeTime;
    @JsonSerialize(using = JsonDateFormat.class)
    private Date createTime;
    @JsonSerialize(using = JsonDateFormat.class)
    private Date updateTime;
    private String remark;
    private String interviewTime;
    @TableField(exist = false)
    private JobDetailVo jobDetailVo;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberId() {
        return memberId;
    }

    public void setMemberId(String memberId) {
        this.memberId = memberId;
    }

    public String getJobId() {
        return jobId;
    }

    public void setJobId(String jobId) {
        this.jobId = jobId;
    }

    public long getStatus() {
        return status;
    }

    public void setStatus(long status) {
        this.status = status;
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getInterviewTime() {
        return interviewTime;
    }

    public void setInterviewTime(String interviewTime) {
        this.interviewTime = interviewTime;
    }

    public JobDetailVo getJobDetailVo() {
        return jobDetailVo;
    }

    public void setJobDetailVo(JobDetailVo jobDetailVo) {
        this.jobDetailVo = jobDetailVo;
    }

    @Override
    public String toString() {
        return "{" +
                "id:" + id +
                ", memberId:" + memberId +
                ", jobId:" + jobId +
                ", status:" + status +
                ", completeTime:" + completeTime +
                ", createTime:" + createTime +
                ", updateTime:" + updateTime +
                ", remark:" + remark +
                ", interviewTime:" + interviewTime +
                ", jobDetailVo:" + jobDetailVo +
                '}';
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }
}
